﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WucCloud.Utility
{
    public class Define
    {
        #region 数据库类型
        /// <summary>
        /// SqlServer
        /// </summary>
        public const string DBTYPE_SQLSERVER = "SqlServer";
        /// <summary>
        /// MySql
        /// </summary>
        public const string DBTYPE_MYSQL = "MySql";
        /// <summary>
        /// Qracle
        /// </summary>
        public const string DBTYPE_ORACLE = "Oracle";
        /// <summary>
        /// Sqlite
        /// </summary>
        public const string DBTYPE_SQLITE = "Sqlite";
        #endregion

        #region Cookie Session WebApi
        public const string PROVIDER_COOKIE = "Cookie";
        public const string PROVIDER_SESSION = "Session";
        public const string PROVIDER_WEBAPI = "WebApi";
        #endregion

        #region 当前登录人信息
        /// <summary>
        /// 当前登录用户信息
        /// </summary>
        public const string CurrentUserInfo = "CurrentUserInfo";
        /// <summary>
        /// 当前登录用户权限节点
        /// </summary>
        public const string CurrentUserAuthNode = "CurrentUserAuthNode";
        /// <summary>
        /// 当前登录用户的角色
        /// </summary>
        public const string CurrentUserRoles = "CurrentUserRole";
        /// <summary>
        /// 验证码
        /// </summary>
        public const string VerifyCode = "VerifyCode";
        #endregion

        #region Wechat 
        /// <summary>
        /// 
        /// </summary>
        public const string OPENID = "OpenId";
        /// <summary>
        /// 
        /// </summary>
        public const string SESSIONKEY = "SessionKey";
        #endregion

        #region Permission
        /// <summary>
        /// 权限名称
        /// </summary>
        public const string PERNAME = "Permission";

        /// <summary>
        /// 当前项目是否启用IDS4权限方案
        /// true:表示启用
        /// false:表示不启用
        /// </summary>
        public static bool ISUSEIDS4 = false;
        #endregion
    }
}
